package com.example.mac.yuejian14.service;
import java.util.List;

import com.example.mac.yuejian14.bean.Club;
import com.example.mac.yuejian14.bean.Train;
import com.example.mac.yuejian14.bean.UserResponse;
import com.example.mac.yuejian14.bean.simpleResult;
import okhttp3.MultipartBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;
public interface RetrofitService {
    //注册
    @GET("User/userReg")
    Call<simpleResult> userRegister(@Query("username") String username,
                                    @Query("userpassword") String userpassword);

    //登录
    @GET("User/getUserById")
    Call<UserResponse> userLogin(@Query("username") String username,
                                 @Query("userpassword") String userpassword);

    //培训
    @POST("Train/gettrainlist")
    Call<List<Train>> gettrainlist();

    @GET("Train/getTrainById")
    Call<Train> getTrainById(@Query("trainid") String trainid);

    @GET("Train/getTrainBySearch")
    Call<List<Train>> getTrainBySearch(@Query("keyword") String trainName);

    @GET("Train/addTrain")
    Call<Train> addTrain(@Query("uid") int uid,
                         @Query("trainid") int trainid);
    
    //俱乐部
    @POST("Club/getclublist")
    Call<List<Club>> getclublist();
    @GET("Club/getClubById")
    Call<Club>getClubById(@Query("clubid") String clubid);
    @GET("Club/getClubBySearch")
    Call<List<Club>> getClubBySearch(@Query("keyword") String clubName);}









